package com.zhouyihe.weblog.common.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * @author 周益和
 * @ClassName BizException
 * @qq 1552951165
 * @date 2024/5/26
 */
@Getter
@Setter
public class BizException extends RuntimeException{
    // 异常码
    private String errorCode;
    // 错误信息
    private String errorMessage;
    
    public BizException(BaseExceptionInterface baseExceptionInterface) {
        this.errorCode = baseExceptionInterface.getErrorCode();
        this.errorMessage = baseExceptionInterface.getErrorMessage();
    }
}
